package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * 目标:
 *
 * @author YUE
 * @date 2024/6/18 11:44
 */
@Mapper
public interface OrderDetailMapper {


    void insertBatch(List<OrderDetail> orderDetailList);

    // 根据订单id 查询 包含的菜品/套餐
    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getDetailById(Long id);


}
